The ants are effectively eating plant substances that have not entered the body of the aphid, merely passing through its gut, and so are primary consumers. At other times ants are quite fierce carnivores so that, overall, we must class the ant as being an omnivore capable of feeding on several different trophic levels.